﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ProjectSpam
{
    static class Program
    {

        /// <summary>
        /// Der Haupteinstiegspunkt für die Anwendung.
        /// </summary>
        [STAThread]
        static void Main(string []args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            string tempDir = "C:\\Daten";

            //string temparg = "backup";
            MessageBox.Show("" + args[1]);
           
            //if (args[1].Equals("backup"))
            if (args[1].Equals("backup"))
            {
                Application.Run(new Backup(args[0]));
            }else
            {

           
                MessageBox.Show("start");
                Application.Run(new Recover(args[0]));
            }

            

           
        }
    }
}
